<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/5
 * Time: 10:37
 */

namespace app\admin\controller;


use think\Controller;

class User extends Controller
{
    public function logout()
    {
        session(null, 'admin');
        // 跳出
        $this->redirect('login/index');

    }

    public function index()
    {
        return $this -> fetch();
    }
    //修改密码
    public function updatepwd()
    {
        return $this -> fetch();

    }

}